package com.bba.manager.order.service.impl;

import com.bba.manager.api.SkuFeign;
import com.bba.manager.common.util.ResponseVO;
import com.bba.manager.order.service.IOpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service

public class OpenFeignServiceImpl implements IOpenFeignService {
    @Autowired
    private SkuFeign skuFeign;

    @Override
    public ResponseVO decount(Long id, Integer num) {
        ResponseVO decount = skuFeign.decount(id, num);
        return decount;
    }

    @Override
    public ResponseVO getByCarId(Long carId) {
        return ResponseVO.success(skuFeign.getByCarId(carId));
    }

    @Override
    public ResponseVO decountCV(Long id, Integer num) {
        ResponseVO decount = skuFeign.decountCV(id, num);
        return decount;
    }
    @Override
    public ResponseVO decountPV(Long id, Integer num) {
        ResponseVO decount = skuFeign.decountCV(id, num);
        return decount;
    }


}
